home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM A / PD-ROM A.iso / Utility / Text / Edit II 124 / Edit II ReadMe next >
Encoding:
Text File  |  1991-09-15  |  14.6 KB  |  350 lines  |  [TEXT/EDIT]

  1. Edit II Version 1.2.4 September 14, 1991
  2. ~~~~~~~~~~~~~~~~~~~~~
  3. Written by Kenneth Seah
  4. Copyright © 1990, 1991 by Kenneth Seah
  5. (Portions © by Symantec - Written using Think C and Capps’ Editor Toolkit)
  6.  
  7. This application is copyrighted by Kenneth Seah and is distributed as shareware.
  8. You are welcome to try out Edit II for a week or two and if you decide that it's
  9. something you want to use, send a check drawn on a US Bank or a draft for US$15
  10. made out to me at the address below, enclosing the little questionaire.  I'll
  11. answer your problems and consider bug fixes via electronic mail (InterNet, America
  12. OnLine or GEnie) if you are registered.
  13.  
  14. Otherwise, give a copy of it to a friend, enclosing this file too and trash your
  15. copy (since it takes up valuable space on your disk).
  16.  
  17. I'll consider that you have been registered once you have sent in your shareware
  18. fee.  Upgrades will be posted to America OnLine, GEnie and InterNet.  I can work
  19. out a 'site licence' fee if you need several copies installed at your place.
  20.  
  21. For commercial distribution and correspondence, please contact:
  22.  
  23. Kenneth Seah
  24. P O Box 8565
  25. Austin, TX 78713-8565
  26.  
  27. GEnie: K.SEAH
  28.  
  29. 0. Introduction
  30. ~~~~~~~~~~~~~~~
  31. Edit II is intended as a replacement for the Consulair Edit text editor but
  32. which alllows the use of the cursor keys on the Mac keyboard for navigation.
  33. If the extended keyboard is used, then the num lock LED will indicate whether
  34. the cursor pad or the numeric pad mode is on.  The home, end, page up, page
  35. down keys will also work, as will the delete right key.  One level of undo
  36. is supported.  You can launch Edit II by double clicking old Edit files
  37. (since Edit II uses the same creator signature as Edit, that is, EDIT).
  38. This means that you might want to rebuild the desktop after installing
  39. Edit II.
  40.  
  41. Edit II requires System Software 4.1 and above and is Multifinder-friendly.
  42.  
  43. This program is compiled using Think C 4.0.5 and uses the Capps’ Editor
  44. Toolkit.
  45.  
  46. 1. Menu Items
  47. ~~~~~~~~~~~~~
  48. Edit II works just like Consulair's Edit.  The File menu is standard and carries
  49. the usual options of New, Open, Save, Save As, Revert, Page Setup, Print, Transfer
  50. and Quit.  The Edit Menu is also standard and comes with the Undo, Cut, Copy, Paste
  51. and Clear choices.  You can also shift a selection one space to the left or right
  52. using the shift left/right menu items  The Search menu looks a lot like that in
  53. Think Pascal or C.  The Find dialog allows for searching in multiple files.
  54. Click on the multiple file checkbox and specify the file paths or click on the
  55. Use File button to specify the folder using the good old File Selection box).
  56. Quick movements to any part of the file are handled by the Go to options in the
  57. Search menu.  The Font and Size selection is made off the Options menu as submenus.
  58. Options also allows setting of tabs, autoindent choice and the creator of the
  59. saved file (defaults to EDIT).  The Windows menu allows quick selection of one
  60. of the four windows available to Edit II (sorry but this is the maximum number
  61. of editable windows so far).
  62.  
  63. The Balance item on the Edit menu will expand the selection to encompass the
  64. next enclosing set of parentheses (), braces {} or brackets [].  The Remove LFs
  65. command will remove all linefeeds even if Strip LF or SmartStrip have not been
  66. selected.  Select All will select all the text in the current window.
  67.  
  68. 2. Nice things
  69. ~~~~~~~~~~~~~~
  70. Cursor keys on the Plus and up now work (unlike in Edit).  In addition, if you
  71. have an extended keyboard, then the page up/down, home/end and delete to right
  72. (del) keys also work.  Moreover, the keypad also toggles from the num lock mode
  73. (default) to cursor mode (like on the other machines) when you hit the num lock
  74. (clear) key on the keypad.  A special CursorPad menu will appear showing the
  75. correspondence between the cursor pad and the keys on the number pad.
  76.  
  77. Hitting 'enter' on the keypad will automatically scroll to the current insertion
  78. point.
  79.  
  80. Hitting '-' on the keypad will jump around the five last insertion points.  Note
  81. that double-clicking to select a word counts as two insertion points (a quirk of
  82. Capps’) and that Edit II will cycle through all five points, even though they are
  83. the same (like at the beginning).  So if the insertion point seems stuck, keep on
  84. pressing '-'!  These jump positions are changed when text is inserted, the page,
  85. home and end keys are pressed.
  86.  
  87. The F1-F4 keys also function as undo, cut, copy and paste on the extended keyboard
  88. and the num lock light on the keyboard will show the state of the number pad.
  89.  
  90. If autoindent mode is on, then hitting option-return will move the insertion
  91. point to the start of the next line and not do the autoindent for that line.
  92.  
  93. SmartStrip is an intelligent linefeed remover in which linefeeds are removed
  94. when the file is read and replaced (after each CR or replacing each CR - depending
  95. on the input format) when the file is written back.
  96.  
  97. Strip LF invokes a linefeed removal when the file is opened (substituting CRs
  98. for linefeeds or CR/LF combinations where appropriate).
  99.  
  100. Either one or the other but not both of SmartStrip and Strip LF can be active.
  101. If neither of the modes is on then files are read in and written out without
  102. any removals or additions of linefeeds.
  103.  
  104. The New Untitled item in the Options menu selects the optional opening of an
  105. Untitled window when Edit II is double-clicked.
  106.  
  107. The Print Headers item in the Options menu chooses whether the headers are printed
  108. on the top of every page.
  109.  
  110. Holding the option key when Edit II is starting up will bring up the Standard
  111. File input box for you to select the name of a file to edit.
  112.  
  113. If you want to enter the tab or return characters in the Find dialog box,
  114. key in command-tab and command-return respectively.
  115.  
  116. If MultiFinder is running then the right hand side of the window is moved in
  117. to show the disk drive and trash icons (like MS Word).  Also the 'MF' after
  118. the version number simply indicates that MultiFinder is running.
  119.  
  120. 3. GREP searching and replacement
  121. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  122. GREP searching can be now done using regular expressions like the Unix GREP tool.
  123. Pattern matching of regular expressions is carried out as follows:
  124.  
  125. Patterns (regular expressions)
  126.  
  127. 1. Any non-special character is a regular expression which matches itself.
  128.    Characters [ ] \ and . are special characters and should be
  129.    preceded by \ (see rule 4).
  130.  
  131. 2. A regular expression can be concatenated with another regular expression.
  132.  
  133. 3. The . (period) is a special character which matches any one character.
  134.  
  135. 4. The \ followed by any character except ( ) < > or one of the digits 1-9
  136.    is a regular expression which matches that character.
  137.  
  138. 5. A string of characters s surrounded by brackets [ ] forms a regular
  139.    expression that exactly matches any one of the characters in s.  The
  140.    regular expression [^ß] matches any character not in the string ß.
  141.    If a string of 3 characters a-b occurs in the string, then this represents
  142.    all the characters from a to b inclusive.
  143.  
  144. 6. A regular expression R followed by * forms a regular expression which matches
  145.    zero or more occurences of R.
  146.  
  147. 7. A regular expression surrounded by \( and \) matches whatever the regular
  148.    expression matches.
  149.  
  150. 8. A \ followed by a digit n 1 to 9 is a regular expression which matches
  151.    whatever the nth subexpression surrounded by \( \) matches.
  152.  
  153. 9. A regular expression surrounded by \< and \> constrains the match to
  154.    occur when the regular expression is immediately preceded and followed
  155.    by characters which do not match [A-Za-z0-9_] and the first and last
  156.    characters match [A-Za-z0-9_].  This allows us to look for "words".
  157.  
  158. 10. A regular expression which starts with ^ anchors the search pattern to
  159.     the start of a line.  The ^ appearing anywhere else in the regular
  160.     expression will match the ^.
  161.  
  162. 11. A regular expression ending in $ will anchor the search pattern to the
  163.     end of a line.  The $ appearing anywhere else in the regular
  164.     expression will match the $.
  165.  
  166. Replacements
  167.  
  168. 1. Each occurence of & in the replacement string will be substituted with
  169.    whatever was last matched by the regular expression.
  170.  
  171. 2. Each occurence of the form \n where n is a digit 1 to 9 will substitute
  172.    whatever was matched by the nth subexpression enclosed in \( and \).
  173.  
  174. 3. Each occurence of the form \p where p is not a digit 1 to 9 will
  175.    substitute that character p.
  176.  
  177. 4. Multiple File Searching
  178. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  179. Clicking on the Multi-File Search checkbox in the Find dialog box will bring
  180. up another dialog box in which you can key in path names in which to search
  181. for files.  A path name is formed by listing the folders separated by colons,
  182. starting with the volume name, such as HD20:Correspondence:MyMail:*.  The * and
  183. ? symbols can be used (like in Unix) to match wildcard strings and single
  184. characters.  To enter several search paths, key in command-return after each one.
  185. The Use File button in the Multi-File path specification dialog allows you to
  186. keep a list of pathnames in a file (with the suffix .PATHS) for easy usage.
  187. The names of the files in the path are not case sensitive.
  188.  
  189. 5. Creator names
  190. ~~~~~~~~~~~~~~~~
  191. EDIT: Consulair Edit (and Edit II)
  192. MPS : Apple MPW
  193. KAHL: Think C
  194. PJMM: Think Pascal
  195. ALFA: Alpha
  196. MACA: MacWrite
  197. MSWD: Microsoft Word
  198. nX^n: WriteNow
  199. ttxt: TeachText
  200. PEDT: DA Edit or PEdit
  201. WNGZ: WingZ
  202.  
  203. Additional creator names can be inserted into the Creator menu by using ResEdit
  204. (use at your own risk!!).  Note that exactly FOUR letters must be keyed in for
  205. each creator name.
  206.  
  207. 6. Workarounds
  208. ~~~~~~~~~~~~~~
  209. Edit II can only search for a pattern in a forward direction.  If you want to
  210. search backwards, the best workaround is to go back to the start of the file
  211. (home) and then search.
  212.  
  213. All files are edited in memory.  So if you have a large file, reset the size of
  214. the application using Get Info on the Edit II application icon and change the
  215. size of the application memory. Or better still - run under the Finder (and not
  216. MultiFinder).  Naturally you shouldn't edit a 2MB file on a 1MB Mac using
  217. Edit II!
  218.  
  219. 7. Bug Reports
  220. ~~~~~~~~~~~~~~
  221. If you find any bugs with this program, please write to me at the above address.
  222. You can also E-mail me on GEnie as K.SEAH or on America OnLine as KSeah.
  223.  
  224. 8. Warranty
  225. ~~~~~~~~~~~
  226. Kenneth Seah hereby disclaims all warranties relating to this software, whether
  227. express or implied, including without limitation any implied warranties of
  228. merchantability or fitness for a particular purpose.  Kenneth Seah will not be
  229. liable for any special, incidental, consequential, indirect or similar damages
  230. due to loss of data or any other reason, even if Kenneth Seah or an agent of his
  231. has been advised of the possibility of such damages.  In no event shall Kenneth
  232. Seah's liability for any damages ever exceed the price paid for the license
  233. to use software, regardless of the form of the claim.  The person using the
  234. software bears all risk as to the quality and performance of the software.
  235.  
  236. 9. Questionaire
  237. ~~~~~~~~~~~~~~~
  238. Copy, print this and fill in the blanks!
  239.  
  240. REGISTERING FOR: Edit II Version 1.2.4 September 14, 1991
  241.  
  242. NAME:
  243.  
  244. ADDRESS:
  245.  
  246.  
  247.  
  248. CITY:                         STATE:                ZIP:
  249.  
  250. ELECTRONIC MAIL ADDRESSES (GEnie, InterNet, Compu$erve, AppleLink, America OnLine):
  251. [For updates and bug reports]
  252.  
  253.  
  254. Macintosh you have:
  255.  
  256. Current version of your System Software:
  257.  
  258. Comments about Edit II (add more space if desired!):
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266. >>> Don't forget the US$15 shareware fee <<<
  267.  
  268. Version History
  269. ~~~~~~~~~~~~~~~
  270. 1.0.1 (10/09/90)
  271. ~~~~~
  272. First release.
  273.  
  274. 1.0.2 (11/20/90)
  275. ~~~~~
  276. • Now recognizes the extended keyboard del, home, end, pgup and pgdn keys
  277. while in the Cursor Pad mode.
  278. • Fixed toggling of LEDs.
  279. • Added Enter Selection menu item in Search menu to allow for copying of
  280. the selected text into the Search String box in the Find dialog (a la Think C).
  281. You can enter the selected text and then use Find Again to look for
  282. its next occurence.
  283.  
  284. 1.1 (04/05/91)
  285. ~~~
  286. • EditPrefs file in the Preferences folder of the System Folder now contains the
  287. setup of the options, font, size and creator which were saved last.  Default
  288. settings are: the following options are enabled (Auto Indent and SmartStrip),
  289. font is Monaco, size is 9 and creator is EDIT.  Preferences file is not created
  290. if System Folder is on a locked disk (e.g. network server or locked local disk).
  291. • Balance command added to Edit menu to balance parentheses, braces and
  292. brackets.
  293. • Remove LFs command added to Edit menu to remove all linefeeds from window,
  294. if Strip LF or SmartStrip are not selected.
  295. • Select All added to Edit menu.
  296. *** Bugs fixed ***
  297. • Typing the letter ‘O’ while in CursorPad mode would cause a cursor down
  298. operation in 1.0.2.
  299. • If Caps Lock key is down (and the Caps Lock LED is on) then hitting
  300. num lock to set CursorPad mode would turn off the Caps Lock LED.
  301. • NumLock LED would stay on when printing from the Finder.
  302. • ID=12 Bomb eliminated on quit from Edit II, due to calling non-existent ADB
  303. routines on Mac Plusses and below.
  304. (Operational tweak: removed Think's ANSI library to save a lot of space!)
  305.  
  306. 1.2 (05/04/91)
  307. ~~~
  308. • EditPrefs file now includes a flag for New Untitled to optionally open a new
  309. untitled window on startup.  Default is to open the Untitled window.
  310. *** Bugs fixed ***
  311. • Selecting Quit from File menu and then selecting Cancel from the 'Save changes
  312. before quitting?' dialog would quit to the Finder anyway.
  313. • Now saves ETAB and EFNT information (tab/space and font/size resources) to the
  314. file if this is changed during edit.
  315.  
  316. 1.2.1 (05/16/91) Maintenance release.
  317. ~~~~~
  318. *** Bugs fixed ***
  319. • Cursor updating now done via MultiFinder 'cursor moved' event rather than
  320. everytime through the main event loop (cosmetic 'bug' since I noticed that the
  321. cursor would 'stick' to the arrow when moving very rapidly from the scroll bar
  322. to the editing window).
  323. • Clipboard contents are updated when the program is quit.
  324.  
  325. 1.2.2 (05/17/91) Maintenance release.
  326. ~~~~~
  327. *** Bugs fixed ***
  328. • Existing clipboard contents are read in when the program starts.
  329.  
  330. 1.2.3 (08/24/91)
  331. ~~~~~
  332. • EditPrefs file now contains print headers flag, number of spaces per tab.
  333. • Close now has cmd-W as the command key.  Consequently, Replace is now cmd-R,
  334. Replace and Find Again is cmd-Y, Page Setup is cmd-; and Print is cmd-P.
  335. • Print headers on each page is now optional.
  336. • Number of spaces per tab is now a global value and can be saved as a preference.
  337. This means that Set Tabs... will affect all future new windows and can be saved
  338. into the EditPrefs file.
  339. • The '-' key on the keypad now acts as a jump to previous insertion points (last 5).
  340. *** Bugs fixed ***
  341. • File list under Windows updates when an Untitled window is saved and when a
  342. window is Saved As another name.
  343.  
  344. 1.2.4 (09/14/91) Maintenance Release
  345. ~~~~~
  346. *** Bugs fixed ***
  347. • GetEditPrefs: IOError=-39 when trying to read pre-1.2.3 EditPrefs file (file
  348. size different)
  349. • Does not crash under UniFinder, now uses WaitNextEvent exclusively.
  350.